package controller;

import interfaces.IFLocation;
import db.LocationDb;

public class LocationCtr implements IFLocation {

	LocationDb location = new LocationDb();
	public LocationCtr() {
		
	}

	@Override
	public String getCity(int zipcode) throws Exception {
		
		return location.getCity(zipcode);
	}

	@Override
	public String getCountry(int zipcode) throws Exception {
		return location.getCountry(zipcode);
	}

	@Override
	public void insertLocation(int zipcode, String city, String country)
			throws Exception {
		location.insertLocation(zipcode,city,country);
		
	}

}
